#include <bits/stdc++.h>
using namespace std;

int main(int argc, char** argv) {
	int T;
	cin>>T;
	float n;
	while (T--) {
		cin>>n;
		cout<<fixed<<setprecision(0)<<pow(2, n)<<endl;
	}
	return 0;
}
